/**
 * 配置代理
 */

const proxy = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    'api',
    proxy({
      target: 'http://localhost:8806', // 你要访问的地址
      changeOrigin: true,
      pathRewrite: {
        '^/api': '',
      },
    }),
  );
};
